package com.qztech.sdk;

import android.app.Application;

import com.qztech.utils.YzDebug;

import org.xutils.DbManager;

/**
 * @author:zhanghb
 * @date:2019/1/27
 * @email:2573475062@qq.com
 **/
public class BaseApplication extends Application {

    private static BaseApplication INSTANCE;
    public static DbManager.DaoConfig daoConfig; //DAO Config
    private DbManager dbManager;

    @Override
    public void onCreate() {
        super.onCreate();
        INSTANCE = this;
    }

    public static BaseApplication getInstance() {
        return INSTANCE;
    }

    public void setDbManager(DbManager dbManager){
        YzDebug.d("------setDbManager-----------: "+ dbManager);
        this.dbManager = dbManager;
    }
    public DbManager getDbManager() {
        return dbManager;
    }
}
